/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    text-align: center;
}

.login-box h1 {
    color: #185a9d;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.welcome-box {
    margin-bottom: 30px;
}

.welcome-box h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #43cea2, #185a9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text {
    color: #666;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    border-color: #43cea2;
    box-shadow: 0 0 10px rgba(67, 206, 162, 0.2);
    outline: none;
}

.password-options {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    align-items: center;
}

.password-options label {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.password-options input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #43cea2, #185a9d);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 206, 162, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.forgot-password {
    margin-top: 20px;
    text-align: center;
}

.forgot-password a {
    color: #185a9d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #43cea2;
    text-decoration: underline;
}

.error-message {
    background-color: rgba(248, 215, 218, 0.9);
    color: #721c24;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}